package org.ezplatform.office.forum.entity;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseCorpEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * @desc 论坛标签实体类
 * @create 2017-11-14 20:04
 **/
@MetaData(value = "论坛标签")
@Entity(name = "ForumLabel")
@Table(name = "oa_forum_label", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class ForumLabel extends BaseCorpEntity {

    private static final long serialVersionUID = 8266236094467960197L;
    /**
     * 名称
     */
    @MetaData(value = "名称")
    @Column(name = "name", length = 50)
    private String name;

    /**
     * 颜色
     */
    @MetaData(value = "颜色")
    @Column(name = "color", length = 10)
    private String color;

    /**
     * 状态:1-启用;2-禁用
     */
    @MetaData(value = "状态")
    @Column(name = "status")
    private int status;

    /**
     * 排序
     */
    @MetaData(value = "排序")
    @Column(name = "sort_no")
    private int sortNo;

    /**
     * 描述
     */
    @MetaData(value = "描述")
    @Column(name = "description", length = 500)
    private String description;

    /**
     * 删除标识
     */
    @MetaData(value = "删除标识")
    @Column(name = "is_delete")
    private int isDelete;
    
    /**
     * 初始化标识
     */
    @MetaData(value = "初始化：1是0否")
    @Column(name = "is_init")
    private int isInit;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSortNo() {
        return sortNo;
    }

    public void setSortNo(int sortNo) {
        this.sortNo = sortNo;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

	public int getIsInit() {
		return isInit;
	}

	public void setIsInit(int isInit) {
		this.isInit = isInit;
	}
    
    
}
